package com.hs.mpdemo_01.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hs.mpdemo_01.entity.Teacher;
import com.hs.mpdemo_01.mapper.TeacherMapper;
import com.hs.mpdemo_01.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName TeacherServiceImpl
 * @Description TODO
 */
@Service
public class TeacherServiceImpl implements TeacherService {
    @Autowired
    TeacherMapper mapper;


    @Override
    public Page<Teacher> findByPage(Integer pageNum, Integer pageSize) {
        Page<Teacher> page = new Page<>(pageNum,pageSize);
        return mapper.selectPage(page, null);
    }
}
